import { createRouter, createWebHistory } from 'vue-router';
import Main from '@/components/mainIndex.vue';
import Login from "@/components/loginIndex.vue";

export default createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes: [
    {
      path: '/main',
      name: 'main',
      component: Main
    },
    {
      path: '/',
      name: 'login',
      component: Login,
    }
  ],
});
